<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8" />
  <meta name="referrer" content="no-referrer" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <link rel="stylesheet" href="css/public.css">
  <link rel="stylesheet" href="css/style.css" />
  <link rel="stylesheet" href="css/style_media.css" />
  <link rel="icon" href="favicon.ico" type="image/x-icon" />
  <title>源·梦登录系统</title>
</head>

<body>
  <header>
    <div class="nav-left">
      <img src="./image/logo.png" alt="logo" />
      <a href="javascript:void(0)">登录系统</a>
    </div>
    <div class="nav-right">
      <ul>
        <li><a href="javascript:void(0)">在线登录</a></li>
        <li><a href="javascript:void(0)">在线注册</a></li>
        <li><a href="javascript:void(0)">历史记录</a></li>
        <li><a href="javascript:void(0)">个人信息</a></li>
      </ul>
    </div>
  </header>
  <main>
    <!-- 表单内容 -->
    <div class="login-box">
      <form action="" method="Post">
        <div class="login">
          <!-- 头像 -->
          <div class="picture">
            <img id="avatar" src="./image/picture.png" alt="头像" />
          </div>
          <label for="username"><input name="username" id="qqNumber" type="text" placeholder="请输入账号" /></label>
          <label for="password"><input name="password" id="password" type="password" placeholder="请输入密码" /></label>
          <div class="order">
            <a href="./register">注册账号</a>
            <a href="javascript:void(0)">忘记密码</a>
          </div>
          <input id="submit" type="button" value="登录" />
        </div>
      </form>
    </div>
  </main>
  <footer>赣ICP备2020014038号</footer>
  // qq头像获取
  <script src="./js/interface.js"></script>
  <script>
    // 登录主页跳转
    login.addEventListener('click', () => {
      if (qq.value === '' && psd.value === '') {
        alert('还有未输入的表单喔~')
      } else {
        location.href = 'http://www.sudream.club'
      }
    })
  </script>
</body>

</html>